package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;


import java.time.LocalDateTime;
import java.util.List;

/**
 * 供货单实体
 */
@TableName("t_supply")
@Data
public class SupplyBean {
    @TableId(value = "pk_id",type = IdType.AUTO)
    private Long id;//供货单id
    @TableField("fk_supplierId")
    private Long supplierId;//供应商编号
    @TableField("s_batch")
    private String batch;//供货批次
    @TableField("s_orderId")
    private String orderId;//订单id
    @TableField("s_supplierName")
    private String supplierName;//供应商名
    @TableField("s_status")
    private String status;//状态
    @TableField("s_time")
    private LocalDateTime time=LocalDateTime.now();//发货时间
    @TableField("s_address")
    private String address;//发货地址
    @TableField("s_sumPrice")
    private Double sumPrice;//总价格
    @TableField(exist = false)
    private List<GoodsBean> goodsList;
}
